<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      body {
        background: sandybrown;
      }
      div {
        position: absolute;
        width: 167px;
        height: 191px;
        background: url("img/robot.png") no-repeat;
        animation: move 3s infinite linear;
      }
      @keyframes move {
        0% {
          left: 0;
          transform: rotateY(0deg);
        }
        49% {
          transform: rotateY(0deg);
        }
        50% {
          left: 1000px;
          transform: rotateY(180deg);
        }
        100%{
          left: 0;
          transform: rotateY(180deg);
        }
      }
    </style>
  </head>
  <body>
    <div></div>
  </body>
</html>
